//
//  XYCallingBottomToolBarView.h
//  xylink_app
//
//  Created by gao chenyang on 2020/6/18.
//  Copyright © 2020 ainemo. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger,XYBottomToolBarItemType){
    XYBottomToolBarItemTypeMore = 1000,
    XYBottomToolBarItemTypeHost = 1001,
    XYBottomToolBarItemTypeShare = 1002,
    XYBottomToolBarItemTypeAudioMute = 1003,
    XYBottomToolBarItemTypeVideoMute = 1004,
};
@interface XYCallingBottomToolBarView : UIView
@property (nonatomic, copy) void (^clickEventBlock)(UIButton * btn);
@property (nonatomic, copy) void (^longPressEventBlock)(void);
+(instancetype)createView;

-(void)updateItemWithTitle:(nullable NSString *)title forState:(UIControlState)state itemType:(XYBottomToolBarItemType)type;

-(void)updateItemWithImage:(nullable UIImage *)image forState:(UIControlState)state itemType:(XYBottomToolBarItemType)type;

-(void)updateItemWithEnableStatus:(BOOL)enable itemType:(XYBottomToolBarItemType)type;

-(void)updateItemWithSelectedStatus:(BOOL)selected itemType:(XYBottomToolBarItemType)type;

-(BOOL)getItemSelectedStatusWithType:(XYBottomToolBarItemType)type;

-(void)updateParticipantsNum:(NSInteger)num;

//NO 是正常状态  YES 是有分享状态
-(void)updateShareItemStatus:(BOOL)share;
//audio 显示状态
-(void)updataAudioStatusWithMuteIsDisabled:(BOOL)muteIsDisabled handStatus:(BOOL)handStatus;

- (CGFloat)left;
@end

NS_ASSUME_NONNULL_END
